﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DCT.Model
{
    public class SwitchModel : DeviceBaseModel
    {
        public SwitchModel()
            : base()
        {
            _swDevice = new SwitchDevice();
        }

        public SwitchModel(SwitchDevice sw, Device device)
            : base(device)
        {
            _swDevice = sw;
        }

        SwitchDevice _swDevice;

        public SwitchDevice Switch
        {
            get
            {
                return _swDevice;
            }
        }

        public override int DeviceID
        {
            get
            {
                return _swDevice.DeviceID;
            }
            set
            {
                _swDevice.DeviceID = value;
                _device.DeviceID = value;
            }
        }
    }
}
